package com.priconsumer.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@CrossOrigin //(origins = {"http://localhost:8088/"})//跨域问题
public class IndexController {

 @RequestMapping("/index")
    public String getindex(Model model){
        model.addAttribute("shuo","数据传输正常");
        return "index";
    }




}
